﻿<div class="text-center">
    <MSheet Class="px-7 pt-7 pb-4 mx-auto text-center d-inline-block"
            Color="blue-grey darken-3"
            Dark>

        <div class="grey--text text--lighten-1 text-body-2 mb-4">
            Are you sure you want to delete this album?
        </div>

        <MButton Disabled="loading"
                 class="ma-1"
                 Color="grey"
                 Plain>
            Cancel
        </MButton>

        <MButton Loading="loading"
                 class="ma-1"
                 Color="error"
                 Plain
                 OnClick="Remove">
            Delete
        </MButton>
    </MSheet>
</div>

@code {

    bool loading = false;

    private async Task Remove()
    {
        loading = true;

        await Task.Delay(3000);

        loading = false;
    }

}